package com.gp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.sun.xml.internal.ws.developer.Serialization;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.lang.annotation.Annotation;
import java.util.Date;

/**
 * @program:carrent-pro
 * @author: luzzh
 * @Time: 2022-03-12 17:40
 * @Version: 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Income implements Serialization{
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    @TableField(value = "client_id")
    private Integer clientId;
    @TableField(value = "type_id")
    private Integer typeId;
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date addtime;
    private Double amount;
    @TableField(value = "pay_id")
    private Integer payId;

    @Override
    public String encoding() {
        return null;
    }

    @Override
    public Class<? extends Annotation> annotationType() {
        return null;
    }
}
